package cc.rengu.igas.bomp.facade.enums;

/**
 * 是否需要审核
 *
 * @author: zhangxuran
 * @Date: 2020/3/30 0:32
 * @Description: 是否需要审核
 */
public enum BompAuditFlagEnum {

    /**
     * 无需审核
     */
    NO_CHECK("0", "无需审核"),
    /**
     * 需要审核
     */
    CHECK("1", "需要审核"),
    ;

    private String type;

    private String desc;

    public String getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    BompAuditFlagEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static boolean verifyByType(String type) {
        if (null == type || "".equals(type)) {
            return false;
        }

        for (BompAuditFlagEnum bompAuditFlagEnum : values()) {
            if (bompAuditFlagEnum.getType().equals(type)) {
                return true;
            }
        }

        return false;
    }


}
